/**
 * Created by wang on 2017/2/28.
 */
$(function(){
	var report = new myReport();
	report.daily_gaugechart(pm);
	createEchartS(qssj,jssj,data);
//函数区
	function createEchartS(a,b,data){
		var myChart = echarts.init(document.getElementById('echart'));
		var dataAll = [data];
		option = {
			    title: {
			        x: 'center',
			        text:'2016-08-21至2016-12-31',
			        textStyle:{fontSize:16,fontWeight:'normal'}
			    },
			    grid:{y2:10},
			    tooltip: {
			        formatter: 'Group {a}: ({c})'
			    },
			    xAxis: [
			        {name:'日期',splitLine:false,type:'time',nameLocation:'end',nameGap:'7',gridIndex: 0,data:'',axisLabel:false,axisTick:{show:false,length:1},splitNumber:30}
			    ],
			    yAxis: [
			        {name:'归寝时间',type:'value',gridIndex: 0,axisTick:false}
			    ],
			    series: [
			      	{   itemStyle :{
				  	              normal:{
					                  color:"#88dbfa"
					               }
			        			},
			            name: 'I',
			            type: 'scatter',
			            xAxisIndex: 0,
			            yAxisIndex: 0,
			            data: dataAll[0],
			        
			        }
			    ]
			};
		  myChart.setOption(option);
	}
});

